
/* defines for global raw socket - P2 */

/* for C++ compilers, use extern "C" */
#ifdef __cplusplus
extern "C" {
#endif

extern int global_socket;
extern int start_your_engines;

void create_global_socket(void);
  void send_on_global_socket(char *pkt,unsigned long daddr, unsigned long src,unsigned short len);
int recv_on_global_socket(char *buf);
int poll_global_socket(char **buf);
void init_interface(int id);

void clean_pcap_ipchains(int);
void filter_local_port(int port,int id);
void filter_local(int port,int ip);
void filter_remote_port(int port,int id);
void filter_remote(int port,int ip);
char* GetCaptureFilter();

#ifdef __cplusplus
}
#endif
